<?php
session_start();
include '../connect.php';
include '../functions.inc';
	$message_ok = "";
	
		$resume = $_POST["value"];
		
		$table_name = "customer";
		$sql = ("UPDATE customer SET resume='".mysql_real_escape_string($resume)."' WHERE user_name='".mysql_real_escape_string($_SESSION[logname])."' ");
		mysql_query($sql) or die('impossible de modifier le resume'.mysql_error());
		
		$sql = ("SELECT resume FROM customer WHERE user_name='".mysql_real_escape_string($_SESSION[logname])."' ");
		$newresume = mysql_query($sql) or die('impossible de modifier le resume'.mysql_error());
		$newresume = mysql_fetch_array($newresume);

		$message_ok = "Votre CV a bien &eacute;t&eacute; enregistr&eacute;";
		updateDateUser($_SESSION['logname'],$table_name);
	
	
	print $_POST["value"];

?>